<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>页面未找到 - 404错误</title>
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #6a11cb 0%, #2575fc 100%);
            color: white;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            text-align: center;
            padding: 20px;
            overflow-x: hidden;
        }
        
        .container {
            max-width: 800px;
            padding: 40px;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
        }
        
        .error-code {
            font-size: 120px;
            font-weight: 900;
            margin-bottom: 20px;
            text-shadow: 5px 5px 0 rgba(0, 0, 0, 0.2);
            position: relative;
            display: inline-block;
        }
        
        .error-code span {
            display: inline-block;
            animation: bounce 1.5s ease infinite alternate;
        }
        
        .error-code span:nth-child(2) {
            animation-delay: 0.1s;
        }
        
        .error-code span:nth-child(3) {
            animation-delay: 0.2s;
        }
        
        @keyframes bounce {
            0% {
                transform: translateY(0);
            }
            100% {
                transform: translateY(-20px);
            }
        }
        
        h1 {
            font-size: 36px;
            margin-bottom: 20px;
            font-weight: 700;
        }
        
        p {
            font-size: 18px;
            line-height: 1.6;
            margin-bottom: 30px;
            max-width: 600px;
        }
        
        .buttons {
            display: flex;
            justify-content: center;
            gap: 20px;
            flex-wrap: wrap;
        }
        
        .btn {
            padding: 12px 30px;
            border-radius: 50px;
            font-size: 16px;
            font-weight: 600;
            text-decoration: none;
            transition: all 0.3s ease;
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
        }
        
        .btn-primary {
            background: white;
            color: #6a11cb;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
        }
        
        .btn-secondary {
            background: transparent;
            color: white;
            border: 2px solid white;
        }
        
        .btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
        }
        
        .btn-primary:hover {
            background: #f0f0f0;
        }
        
        .btn-secondary:hover {
            background: rgba(255, 255, 255, 0.1);
        }
        
        .search-box {
            margin-top: 30px;
            display: flex;
            max-width: 400px;
            margin-left: auto;
            margin-right: auto;
        }
        
        .search-input {
            flex: 1;
            padding: 12px 20px;
            border-radius: 50px 0 0 50px;
            border: none;
            outline: none;
            font-size: 16px;
            background: rgba(255, 255, 255, 0.9);
        }
        
        .search-btn {
            padding: 12px 25px;
            border-radius: 0 50px 50px 0;
            border: none;
            background: #ff6b6b;
            color: white;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .search-btn:hover {
            background: #ff5252;
        }
        
        .floating-elements {
            position: absolute;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            overflow: hidden;
            z-index: -1;
        }
        
        .floating-element {
            position: absolute;
            border-radius: 50%;
            background: rgba(255, 255, 255, 0.1);
            animation: float 15s infinite linear;
        }
        
        @keyframes float {
            0% {
                transform: translateY(0) rotate(0deg);
            }
            100% {
                transform: translateY(-1000px) rotate(720deg);
            }
        }
        
        @media (max-width: 768px) {
            .error-code {
                font-size: 80px;
            }
            
            h1 {
                font-size: 28px;
            }
            
            p {
                font-size: 16px;
            }
            
            .buttons {
                flex-direction: column;
                align-items: center;
            }
            
            .btn {
                width: 100%;
                max-width: 250px;
            }
        }
    </style>
</head>
<body>
    <div class="floating-elements" id="floatingElements"></div>
    
    <div class="container">
        <div class="error-code">
            <span>4</span>
            <span>0</span>
            <span>4</span>
        </div>
        
        <h1>哎呀！页面走丢了</h1>
        
        <p>
            您正在寻找的页面可能已被移动、删除或暂时不可用。
            别担心，让我们帮您找到正确的方向。
        </p>
        
        <div class="buttons">
            <a href="/" class="btn btn-primary">返回首页</a>
            <a href="/contact" class="btn btn-secondary">联系支持</a>
        </div>
        
        <div class="search-box">
            <input type="text" class="search-input" placeholder="搜索您需要的内容...">
            <button class="search-btn">搜索</button>
        </div>
    </div>

    <script>
        // 创建浮动元素
        const floatingElements = document.getElementById('floatingElements');
        const colors = ['rgba(255, 255, 255, 0.1)', 'rgba(255, 255, 255, 0.07)', 'rgba(255, 255, 255, 0.05)'];
        
        for (let i = 0; i < 15; i++) {
            const element = document.createElement('div');
            element.classList.add('floating-element');
            
            // 随机大小
            const size = Math.random() * 100 + 20;
            element.style.width = `${size}px`;
            element.style.height = `${size}px`;
            
            // 随机位置
            element.style.left = `${Math.random() * 100}%`;
            element.style.top = `${Math.random() * 100 + 100}%`;
            
            // 随机颜色
            element.style.background = colors[Math.floor(Math.random() * colors.length)];
            
            // 随机动画延迟和持续时间
            element.style.animationDelay = `${Math.random() * 15}s`;
            element.style.animationDuration = `${Math.random() * 20 + 15}s`;
            
            floatingElements.appendChild(element);
        }
        
        // 搜索功能
        document.querySelector('.search-btn').addEventListener('click', function() {
            const query = document.querySelector('.search-input').value;
            if (query.trim() !== '') {
                alert(`正在搜索: ${query}`);
                // 实际项目中这里应该跳转到搜索结果页面
                // window.location.href = `/search?q=${encodeURIComponent(query)}`;
            }
        });
        
        // 回车键搜索
        document.querySelector('.search-input').addEventListener('keypress', function(e) {
            if (e.key === 'Enter') {
                document.querySelector('.search-btn').click();
            }
        });
    </script>
</body>
</html>